package com.example.user.domain.chat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 群组成员实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("chat_group_member")
public class GroupMember extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;              // 主键ID
    
    @TableField("group_id")
    private Long groupId;         // 群组ID
    
    @TableField("user_id")
    private Long userId;          // 用户ID
    
    @TableField("nickname")
    private String nickname;      // 用户在群里的昵称

    @TableField("identity")
    private Integer identity;
} 